package com.ky.gp.app.controller;

import com.ky.common.vo.R;
import com.ky.gp.app.service.OpenCourseVideoFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * --- 天道酬勤 ---
 *
 * @author 1379
 * @date 2024/6/20
 * @desc -- 代码敲烂 月薪过万--
 */
@RestController
@RequestMapping("/api/openCourse")
public class OpenCourseVideoController {

    @Autowired
    private OpenCourseVideoFeign openCourseVideoFeign;


    @GetMapping("/getVideoList")
    public R getVideoList(@RequestParam("courseId") Integer courseId){
        return openCourseVideoFeign.getVideoList(courseId);
    }

}
